<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
  <title><%= 'ezyWiki' + (@title ? " - #@title" : '- Simple WYSIWYG Wiki') %></title>
	<link rel="stylesheet" href="/stylesheets/blueprint/screen.css" type="text/css" media="screen, projection" />
	<link rel="stylesheet" href="/stylesheets/blueprint/print.css" type="text/css" media="print" />    
	<!--[if IE]><link rel="stylesheet" href="/stylesheets/blueprint/ie.css" type="text/css" media="screen, projection" /><![endif]-->
  <%# bundle do %>
	  <%= stylesheet_link_tag 'style' %>
		<%= javascript_include_tag 'jquery', 'jquery-ui', 'jrails' %>
		<%= javascript_include_tag 'jquery.form', 'jquery.livequery' %>
		<%= javascript_include_tag '/nicEdit/nicEdit.js' %>
	<%# end %>
	<%= yield :head -%>
	<%= javascript_tag "var AUTH_TOKEN='#{form_authenticity_token}';" if protect_against_forgery? %>
	<%= javascript_include_tag 'application' %>
	<%= yield :jquery_onload -%>
</head>

<body id="application">
	
	<div class="container">
		<div id="content" class="span-24">
			<div id="sub_area" class="span-4 append-1">
				<div id="header">
					<h2 id="logo"><%= link_to image_tag('logo.gif', :alt => 'ezyWiki'), root_path %></h2>
				</div>
				<%= render :partial => 'layouts/side_menu' %>	
				<div id="sub_area" class="right">
					<%= yield :sub_area %>
				</div>
			</div>	
			<div id="main_area" class="span-19 last">

				<%= render :partial => 'layouts/top_menu' -%>

				<% if flash[:notice] %>
					<div class="notice"><%= flash[:notice] %></div>
				<% end %>
				
				<%= yield %>
				
			</div>	
		</div>	

	  <div id="footer" class="span-24 right">
			Copyright (c) <a href="http://usefulparadigm.com">UsefulParadigm</a>, All right reserved 2007-2008.
		</div>	
		
	</div><!-- end of container -->
	
</body>
</html>

